package com.schoolai.feign.tts;

import com.schoolai.util.base.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Copyright(C),2019-2025，XX公司
 * FileName:Voice
 * Author:bobby
 * 创建时间：2025/9/30 14:46
 * Description:TTSFeign接口
 * History:
 * <auth>        <time>       <version>       <desc>
 * 作者          修改时间       版本号         描述
 */
@FeignClient(value="school-tts-service", path = "/tts")
@Tag(name = "TTS", description = "TTS任务")
public interface IVoice {
    /**
     * 合成语音文件
     * @param text
     * @return
     */
    @Operation(summary = "合成语音文件")
    @PostMapping("/api/feign/voice/genVoiceFile")
    void genVoiceFile(@RequestParam(value = "text", required = false) String text);
}
